import request from '@/common/request.js'

// 查询船舶维修工单列表(APP)
export function getFixList(data) {
	return request({
		url: '/business/fix/workOrder/listForApp',
		method: 'post',
		data
	})
}


// 新增船舶维修项目
export function addWorkOrderList(query) {
  return request({
    url: '/business/fix/workOrder/add',
    method: 'post',
    data: query
  })
}

// 船舶维修项目详情
export function getWorkOrderDetail(query) {
  return request({
    url: '/business/fix/workOrder/detail',
    method: 'post',
    data: query
  })
}

// 审批维修工单
export function approveWorkOrderRepair(query) {
  return request({
    url: '/business/fix/workOrder/approve',
    method: 'post',
    data: query
  })
}

// 填写维修结果
export function setFixResult(query) {
  return request({
    url: '/business/fix/workOrder/fixResult',
    method: 'post',
    data: query
  })
}

// 查询船舶外修厂家全量列表
export function getFactoryAll(query) {
  return request({
    url: '/business/fix/factory/listAll',
    method: 'post',
    data: query
  })
}